import request from '@/utils/request'

// 获取订单列表列表
export function getOrderList(params) {
  return request({
    url: '/auth/order/list',
    method: 'get',
    params
  })
};

// 获取订单详情
export function getOrder(id) {
  return request({
    url: '/auth/order/get/' + id,
    method: 'get'
  })
};

// 导出订单列表
export function exportOrder() {
  return request({
    url: '/auth/order/export',
    method: 'post',
    responseType: 'blob'
  })
};

// 导入订单列表
export function importOrder(params) {
  return request({
    url: '/auth/order/import',
    method: 'post',
    headers: {'Content-Type': "multipart/form-data"},
    data: params
  })
};


// // 逻辑删除用户
// export function deleteByLogic(id) {
//   return request({
//     url: '/auth/user/deleteByLogic/' + id,
//     method: 'delete'
//   })
// };

// // 批量删除用户
// export function deleteByIds(ids) {
//   return request({
//     url: '/auth/user/deleteByIds?ids=' + ids,
//     method: 'delete'
//   })
// };

// 获取未分配角色用户列表
export function getUnAssignmentUserList(roleId) {
  return request({
    url: '/auth/user/getUnAssignmentUserList/' + roleId,
    method: 'get'   
  })
};
